import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const carrierWaybillApi = {
  //承运 运单列表
  getCarrierWaybillList(params) {
    let url = TCHYURL + "/supplier/waybill/waybillList";
    return myaxios.get(url, params);
  },
  //承运 运单详情
  getCarrierWaybillDetails(params) {
    let url = TCHYURL + "/supplier/waybill/waybillDetail";
    return myaxios.get(url, params);
  },
  //货物明细
  getCargo(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/goods";
    return myaxios.get(url, params);
  },
  //审核
  auditWaybill(params) {
    let url = TCHYURL + "/supplier/waybill/audit";
    return myaxios.post(url, params);
  },
  //查看货物明细
  cargoDetails(params) {
    let url = TCHYURL + "/supplier/selfSupportOrder/goods";
    return myaxios.get(url, params);
  },
   //车辆绑定司机
 driverBindCar(params) {
  let url = TCHYURL + "/account/driver/driverBindCar";
  return myaxios.get(url, params);
},
   // 删除车辆
   deleteVehicle(params) {
    let url = TCHYURL + "/supplier/vehicle/deleteVehicle/"+params;
    return myaxios.get(url);
  },
};

export default carrierWaybillApi;
